import request from '@/utils/request'

// 查询用户Top歌手列表
export function listUsersTopSingers(query) {
  return request({
    url: '/UsersTopSingers/UsersTopSingers/list',
    method: 'get',
    params: query
  })
}

// 查询用户Top歌手详细
export function getUsersTopSingers(userId) {
  return request({
    url: '/UsersTopSingers/UsersTopSingers/' + userId,
    method: 'get'
  })
}

// 新增用户Top歌手
export function addUsersTopSingers(data) {
  return request({
    url: '/UsersTopSingers/UsersTopSingers',
    method: 'post',
    data: data
  })
}

// 修改用户Top歌手
export function updateUsersTopSingers(data) {
  return request({
    url: '/UsersTopSingers/UsersTopSingers',
    method: 'put',
    data: data
  })
}

// 删除用户Top歌手
export function delUsersTopSingers(userId) {
  return request({
    url: '/UsersTopSingers/UsersTopSingers/' + userId,
    method: 'delete'
  })
}
